<?php

App::uses('FileLog', 'Log/Engine');


class WrappedFileLog extends FileLog {
	
	public function __construct($config = array()) {
		parent::__construct($config);
	}

    public function write($type, $message) {
    	$wrappedMessage = $message;
    	if (class_exists("CakeSession")) {
	    	$wrappedMessage = CakeSession::id()."@".$message;
    	}
		return parent::write($type, $wrappedMessage);
	}
	
	
}


?>
